-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create test snapshots & upgrade to testthat
3rd edition
#801
Conversation
Code Coverage Summary
Diff against main
Results for commit: ac0b98d Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really amazing job Emily! With this, I think we can split scda in a couple of days during next week. Also, well done including testthat
3! I think you need to specify it also in the DESCRIPTION (Set the Config/testthat/edition
field to 3).
Fix the error in the new test:
── Error ('test-g_forest.R:4'): (code run outside of `test_that()`) ────────────
<dplyr:::mutate_error/rlang_error/error/condition>
Error in `dplyr::mutate(., ARM = fct_relevel(ARM, "B: Placebo"), rsp = AVALC ==
"CR")`: Problem while computing `ARM = fct_relevel(ARM, "B: Placebo")`.
Caused by error in `fct_relevel()`:
! could not find function "fct_relevel"
The other comments are not super necessary but take a look at them, they are fast fixes.
I read (beside the guide from testthat itself), this summary guide, and I think we should add a note to the future tern
tests that highlights the need of proper test naming. I think it is already almost there. We need just to make sure of this (I think with test-g_forest.R
you moved already towards this).
PS: I did not check if you changed everything already but it looks like it and I trust you ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!! Great, great job @edelarua ^^
fyi @shajoezhu
AMAZING! Thanks so much @edelarua |
Closes #784 and #656